<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/19 0019
 * Time: 9:00
 */
namespace app\admin\model;
use think\Db;

class User
{
    /**查询user的model
     * @return $this
     */
    static public function get(){
        return Db::view('user')
            ->view('occupation','occupation_name','occupation.id=user.occupation','left')
            ->view('vip_price','vip_name,vip_icon,vip_price,vip_picture','vip_price.id=user.vip','left');
    }
}